﻿using QuanLyGiaoVuDAL.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyGiaoVuService.Domain
{
    public class XepLichItemObject
    {
        public Guid MaThongTinDangKyGioDay { get; set; }
        public Guid MaLopMonHoc { get;set;}
        public Guid MaGiangVien { get; set; }
        public Guid MaLopSinhVien { get; set; }
        public int Thu { get; set; }
        public int ThuTu { get; set; }
        public int DoUuTien { get; set; }
        public bool DuocChon { get; set; }
        public bool DaXet { get; set; }
        public TietHocDTO TietDau { get; set; }
        public TietHocDTO TietSau { get; set; }
        public String TenLop { get; set; }

        public XepLichItemObject(DangKyGioDayDTO dangKyGioDayDTO, int thuTu)
        {
            MaThongTinDangKyGioDay = dangKyGioDayDTO.MaThongTinGiangDay;
            MaLopMonHoc = dangKyGioDayDTO.MaLopMonHoc;
            MaGiangVien = dangKyGioDayDTO.GiangVienId;
            Thu = dangKyGioDayDTO.Thu;
            ThuTu = thuTu;
            DoUuTien = dangKyGioDayDTO.DoUuTien;
            MaLopSinhVien = (Guid)dangKyGioDayDTO.LopMonHocDTO.LopSinhVienId;
            DuocChon = false;
            TietDau = dangKyGioDayDTO.TietDauDTO;
            TietSau = dangKyGioDayDTO.TietSauDTO;
            TenLop = dangKyGioDayDTO.LopMonHocDTO.MaLopVaTenMonHoc;
        }

        public XepLichItemObject(XepLichItemObject obj)
        {
            MaThongTinDangKyGioDay = obj.MaThongTinDangKyGioDay;
            MaLopMonHoc = obj.MaLopMonHoc;
            MaGiangVien = obj.MaGiangVien;
            MaLopSinhVien = obj.MaLopSinhVien;
            Thu = obj.Thu;
            ThuTu = obj.ThuTu;
            DoUuTien = obj.DoUuTien;
            DuocChon = obj.DuocChon;
            DaXet = obj.DaXet;
            TietDau = obj.TietDau;
            TietSau = obj.TietSau;
            TenLop = obj.TenLop;
        }
    }
}
